package cn.rumoss.jvm;

public class OnStackTest {

	
	public static void alloc() {
		byte[] b = new byte[2];
		b[0] = 1;
	}
	public static void main(String[] args) {

		long begin = System.currentTimeMillis();
		for(int i=0;i<1_0000_0000;i++) {
			alloc();
		}
		long end = System.currentTimeMillis(); 
		System.out.println(end - begin);
		
	}

}
